package com.aaa.service.impl;

import com.aaa.entity.Orderform;
import com.aaa.mapper.OrderformMapper;
import com.aaa.service.OrderformService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderformServiceImpl extends ServiceImpl<OrderformMapper, Orderform> implements OrderformService {

    @Resource
    OrderformMapper orderformMapper;

    @Override
    public List<Orderform> Oselect(String username) {
        return orderformMapper.Oselect(username);
    }

    @Override
    public int Oadd(Orderform orderform) {
        return orderformMapper.Oadd(orderform);
    }

    @Override
    public int Odel(Integer orderid) {
        return orderformMapper.Odel(orderid);
    }

    @Override
    public int Ostate(Integer orderid) {
        return orderformMapper.Ostate(orderid);
    }

    @Override
    public int payOrder(Integer orderid) {
        return orderformMapper.payOrder(orderid);
    }
}
